package com.rxyb.trade.service.logic;

import com.rxyb.core.respone.R;
import com.rxyb.trade.gateway.dto.PayOrderReq;
import com.rxyb.trade.gateway.dto.PayOrderRsp;
import com.rxyb.trade.gateway.dto.RefundOrderReq;
import com.rxyb.trade.gateway.dto.RefundOrderRsp;
import com.rxyb.trade.strategy.Strategy;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class AliLogic implements Strategy {

    @Override
    public R<PayOrderRsp> pay(PayOrderReq payOrderReq) {
        log.info("this is pay");
        return R.ok(new PayOrderRsp());
    }

    @Override
    public R<RefundOrderRsp> refund(RefundOrderReq refundOrderReq) {
        log.info("this is refund");
        return R.ok(new RefundOrderRsp());
    }

}
